﻿using Elf.Data.Entity.Interfaces;
using Elf.Data.Entity.Management;

namespace Elf.Data.Entity
{
    /// <summary>
    /// Defines a scope for a business transaction. At the end of the scope all object changes
    /// can be persisted to the underlying datastore. Instances of this class are supposed to be 
    /// used in a using() statement.
    /// </summary>
    public sealed class UnitOfWorkScope<TContext> : DbContextScope<TContext>, IUnitOfWorkScope
        where TContext : ContextBase, new()
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
        }
    }
}
